<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xhEditor demo8 : Ajax文件上传</title>
<link rel="stylesheet" href="common.css" type="text/css" media="screen" />
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/xheditor-1.1.0/xheditor-zh-cn.min.js?v=1.1.0"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{

	$('#elm1').xheditor( {
			upLinkUrl : "<%=basePath%>/image/addImg2.do",
			upLinkExt : "zip,rar,txt",
			upImgUrl : "<%=basePath%>/image/addImg2.do",
			upImgExt : "jpg,jpeg,gif,png",
			upFlashUrl : "<%=basePath%>/image/addImg2.do",
			upFlashExt : "swf",
			upMediaUrl : "<%=basePath%>/image/addImg2.do",
			upMediaExt : "wmv,avi,wma,mp3,mid",
			shortcuts : {
				'ctrl+enter' : submitForm
			}
		});
	}
	function submitForm() {
		$('#frmDemo').submit();
	}
</script>
</head>
<body>
<form id="frmDemo" method="post" action="show.php">
	<textarea id="elm1" name="elm1" rows="12" cols="80" style="width: 80%">
	</textarea><br /><br />
	<input type="submit" name="save" value="保存" />
	<input type="reset" name="reset" value="重置" />
</form>
</body>
</html>